home *** CD-ROM | disk | FTP | other *** search
/ Nautilus 1992 July / Nautilus-3-8 / Nautilus-3-8.bin / Tools & Utilities / Techy Stuff / Frontier Scripts / UnmountSyquest < prev    next >
Encoding:
Text File  |  1992-06-12  |  1.8 KB  |  36 lines

  1. Enclosure: dhw.UnmountSyQuest
  2.  
  3. Here's a Frontier script I wrote for unmounting my SyQuest cartridges. I have
  4. two sets of cartridges: one a backup set with volumes named "1-Drive 1 Backup,
  5. 2-Drive 1 Backup,...<n>-Drive 1 Backup"; the second a set of archive cartridges
  6. named "Archive 1, Archive 2,...Archive <n>".
  7.  
  8. This script does a 'for' loop for each set to determine if a cartridge from one
  9. of these 2 sets is mounted, and unmounts the cartridge if true. The script is
  10. not very generic for general use but can be modified easily if you use
  11. ejectable media with names consisting of a root and incremental numbers. The
  12. script is somewhat commented and should be easy to figure out.
  13.  
  14. I use this script via a QuicKey 'Frontier' extension. If Frontier is running I
  15. can unmount any one of my consistantly named cartridge by pressing F13.
  16.  
  17. As another example, I use Retrospect to backup my drive at night. When the
  18. backup is done I want the cartridge unmounted, just in case a power disaster
  19. happens (don't want to fry my drive AND its backup). So I have a timed QuicKey
  20. to unmount the backup cartridge (by executing this script) after Retrospect has
  21. had time to execute a backup of my hard drive.
  22.  
  23. This is what I plan to do with this: Use Frontier to launch my Retrospect
  24. backup at a predermined time (as a Frontier "Agent"). During the backup
  25. Frontier monitors my Mac to check if Retrospect is running. When it finds that
  26. Retrospect is no longer running (it automatically quits after executing the
  27. backup script), it then executes the script to unmount the backup cartridge.
  28. I'll upload this when I finish scripting it.
  29.  
  30. Frontier users: when inporting this script make sure you change the
  31. [user.initials] from "dhw" to your own Frontier initials, so as to import the
  32. script into your people table.
  33.  
  34. Dean
  35. Author: D7064
  36.